var express = require('express');
var router = express.Router();

/* GET cart listing. */
router.get('/', function (req, res, next) {
    if (req.session.role === 2) {
        res.render('cart', {
            activeIndex: "4",
            role: req.session.role,
            adminname: req.session.adminname
        });
    } else {
        res.render("unopen");
    }
});

module.exports = router;
